import { BookIcon } from 'tdesign-icons-vue-next';
import { shallowRef } from 'vue';

import Layout from '@/layouts/index.vue';

export default [
  {
    path: '/guide',
    name: 'guide',
    component: Layout,
    redirect: '/guide/index',
    meta: {
      title: { zh_CN: '指南管理', en_US: 'Guide Management' },
      icon: shallowRef(BookIcon),
    },
    children: [
      {
        path: 'index',
        name: 'GuideIndex',
        component: () => import('@/pages/guide/index.vue'),
        meta: {
          title: { zh_CN: '指南管理', en_US: 'Guide Management' },
        },
      },
      {
        path: 'audit',
        name: 'GuideAudit',
        component: () => import('@/pages/guide/GuideAudit.vue'),
        meta: { title: '指南审核' },
      },
      {
        path: 'simpleList',
        name: 'GuideSimpleList',
        component: () => import('@/pages/guide/GuideSimpleList.vue'),
        meta: { title: '指南简要列表', hidden: true }, // hidden: true 不在菜单显示
      },
      {
        path: 'category',
        name: 'GuideCategory',
        component: () => import('@/pages/guide/category.vue'),
        meta: {
          title: { zh_CN: '指南类别', en_US: 'Guide Category' },
        },
      },
      {
        path: 'add',
        name: 'GuideAdd',
        component: () => import('@/pages/guide/GuideAdd.vue'),
        meta: { title: '新增指南', hidden: true }, // hidden: true 不在菜单显示
      },
      {
        path: 'detail',
        name: 'GuideDetail',
        component: () => import('@/pages/detail/guide/GuideDetail.vue'),
        meta: { title: '指南详情', hidden: true }, // hidden: true 不在菜单显示
      },
    ],
  },
];
